
/**
 * 主进程与渲染进程通信频道定义
 * Definition of communication channels between main process and rendering process
 */
const ipcApiRoute = {  
  
  demo:{    
    jsondbOperation : 'controller/demo/jsondbOperation',
    getSettings :'controller/demo/getSettings',
    getMachineId :'controller/demo/getMachineId',    
    checkHttpServer: 'controller/demo/checkHttpServer',
    doHttpRequest: 'controller/demo/doHttpRequest',    
    getWCid: 'controller/demo/getWCid',
  },
  config:{
    delete: 'controller/config/delete',    
    set: 'controller/config/set',
    get: 'controller/config/get',    
    getAll: 'controller/config/getAll',
    getInfo: 'controller/config/getInfo',
    clear: 'controller/config/clear',    
    reset: 'controller/config/reset',
  },
  setting:{
    saveSetting: 'controller/setting/saveSetting',    
    getMetaData: 'controller/setting/getMetaData',
  },  
  window:{
    panelLogin: 'controller/window/loginWindow',
    panelMain: 'controller/window/mainWindow',
    openSettingWindow: 'controller/window/openSettingWindow',    
    minimizeWindow: 'controller/window/minimizeWindow',
    closeWindow: 'controller/window/closeWindow',
    expandWindow: 'controller/window/expandWindow',
    restoreWindow: 'controller/window/restoreWindow',  
    createWindow: 'controller/window/createWindow',
    getAllWindow: 'controller/window/getAllWindow',
  }
  
}
/**
 * 自定义频道
 * 格式：自定义（推荐添加一个前缀）
 * custom chennel
 */
const specialIpcRoute = {
  appUpdater: 'custom/app/updater', // updater channel
  window1ToWindow2: 'custom/window1-to-window2', // windows channel
  window2ToWindow1: 'custom/window2-to-window1', // windows channel
}

export {
  ipcApiRoute,
  specialIpcRoute
}

